﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PersonStalker
{
    class PersonStalkerDemo
    {
        static void Main(string[] args)
        {
            Person p = new Person();
            p.PropertyChanged += new PropertyChangedEventHandler(p_PropertyChanged);
            p.FirstName = "Nikolai";
            p.LastName = "Georgiev";
            p.LastName = "Rusev";
        }

        static void p_PropertyChanged(object sender, PropertyChangedEventArgs eventArgs)
        {
            Console.WriteLine("{0}: {1} -> {2}", eventArgs.PropertyName, eventArgs.OldValue, eventArgs.NewValue);
        }
    }
}
